package jh.poj.builder;



public class Main {

	/**
	 * @param args
	 */
	public static void director(DocumentBuilder builder){
		builder.addTitle("Autor")
		.addTitle("Tytul")
		.addChapter("sdasd", 0)
		.addParagraph("sjisajdsaijasidjasijdsaijdasijcs\nnsahshdiashdisadhas\ndsijdsaj")
		.addBulleted("cos").addBulleted("cos2").addBulleted("cos3")
		.addChapter("GREEEGWG", 1)
		.addParagraph("sjisajdsaijasidjasijdsaijdasijcs\nnsahshdiashdisadhas\ndsijdsaj")
		.addChapter("REGRGERGER", 1)
		.addParagraph("sjisajdsaijasidjasijdsaijdasijcs\nnsdndshvduhvdusvhuvsdhsvudhvusahshdiashdisadhas\ndsijdsaj")
		.addChapter("efw", 0)
		.addParagraph("sjisajdsaijasidjasijdsaijdasijcs\nnsahshdiashdisadhas\ndsijdsaj")
		.addChapter("JEIWEJFW", 0)
		.addParagraph("sjisajdsaijasidjasijdsaijdasijcs\nnsahshdiashdisadhas\ndsijdsaj")
		.addChapter("FEWFJEWIF", 1)
		.addParagraph("sjisajdsaijasidjasijdsaijdasijcs\nnsahshdiashdisadhas\ndsijdsaj")
		.addChapter("MEFWEJ", 2)
		.addParagraph("sjisajdsaijasidjasijdsaijdasijcs\nnsahshdiashdisadhas\ndsijdsaj")
		.addChapter("MEFWEJ", 2)
		.addParagraph("sjisajdsaijasidjasijdsaijdasijcs\nnsahshdiashdisadhas\ndsijdsaj")
		.addBulleted("cos").addBulleted("cos2").addBulleted("cos3");
	}
	public static void main(String[] args) {
		
		HTMLDocumentBuilder htmlBuilder=new HTMLDocumentBuilder(DocumentBuilder.ChaptersNumering.NORMAL);
		director(htmlBuilder);
		htmlBuilder.saveToFile("document");
		
		TXTDocumentBuilder txtBuilder=new TXTDocumentBuilder(DocumentBuilder.ChaptersNumering.NONE);
		director(txtBuilder);
		txtBuilder.saveToFile("document");
		

	}

}
